//
//  YSPresentAlertView.m
//  Yueshi
//
//  Created by Northwan on 15/9/9.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSPresentAlertView.h"

@interface YSPresentAlertView()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation YSPresentAlertView

+(instancetype)presentAlertView{
    return [[[NSBundle mainBundle]loadNibNamed:@"YSPresentAlertView" owner:nil options:nil]lastObject];
}

-(void)setInfoWithProdName:(NSString *)prodName prodIcon:(NSString *)prodIcon{
    [self.iconView setImageURLStr:prodIcon];
    [self.nameLabel setText:prodName];
}

@end
